<?php
switch($page)
{
	case('home'):
	case(''):
	{
		include('includes/home/home.php');
		break;
	}
	
	case('logout'):
	{
		include('includes/logout.php');
		break;
	}
	case('user'):
	{
		switch($act)
		{
			case(''):
			{
				include('includes/user/user.php');
				break;
			}
			case('add'):
			{
				include('includes/user/user_add.php');
				break;
			}
			case('edit'):
			{
				include('includes/user/user_edit.php');
				break;
			}
			case('del'):
			{
				include('includes/user/user_del.php');
				break;
			}
			
		}
		break;
	}



    case('gioithieu'):
        {
        switch($act){
            case '':
                {
                include('includes/gioithieu/gioithieu.php');
                break;
                }
            case 'edit':
                {
                include('includes/gioithieu/suagioithieu.php');
                break;
                }

        }
        break;
        }

	case('danhmuc'):
	{
		switch($act)
		{
			case(''):
			{
				include('includes/danhmuc/danhmuc.php');
				break;
			}
			case('add'):
			{
				include('includes/danhmuc/danhmuc_add.php');
				break;
			}
			case('edit'):
			{
				include('includes/danhmuc/danhmuc_edit.php');
				break;
			}
			case('del'):
			{
				include('includes/danhmuc/danhmuc_del.php');
				break;
			}
		}
		break;
	}
    case('chungloai'):
    {
        switch($act)
        {
            case(''):
            {
                include('includes/chungloai/pro_manager.php');
                break;
            }
            case('add'):
            {
                include('includes/chungloai/pro_add.php');
                break;
            }
            case('edit'):
            {
                include('includes/chungloai/pro_edit.php');
                break;
            }
            case('del'):
            {
                include('includes/chungloai/pro_del.php');
                break;
            }
        }
        break;
    }
    case('loai'):
    {
        switch($act)
        {
            case(''):
            {
                include('includes/loai/loai.php');
                break;
            }
            case('add'):
            {
                include('includes/loai/loai_add.php');
                break;
            }
            case('edit'):
            {
                include('includes/loai/loai_edit.php');
                break;
            }
            case('del'):
            {
                include('includes/loai/loai_del.php');
                break;
            }
        }
        break;
    }
    case('product'):
    {
        switch($act)
        {
            case(''):
            {
                include('includes/sanpham/product.php');
                break;
            }
            case('add'):
            {
                include('includes/sanpham/product_add.php');
                break;
            }
            case('edit'):
            {
                include('includes/sanpham/product_edit.php');
                break;
            }
            case('del'):
            {
                include('includes/sanpham/product_del.php');
                break;
            }

        }
        break;
    }
	case('slide'):
	{
		switch($act)
		{
			case(''):
			{
				include('includes/slide/slide.php');
				break;
			}
			case('add'):
			{
				include('includes/slide/slide_add.php');
				break;
			}
            case('edit'):
            {
                include('includes/slide/slide_edit.php');
                break;
            }
		}
		break;
	}

	case('new'):
	{
		switch($act)
		{
			case(''):
			{
				include('includes/tintuc/new.php');
				break;
			}
			case('new_add'):
			{
				include('includes/tintuc/new_add.php');
				break;
			}
			case('new_edit'):
			{
				include('includes/tintuc/new_edit.php');
				break;
			}
			case('new_del'):
			{
				include('includes/tintuc/new_del.php');
				break;
			}
		}
		break;
	}
	case('contact'):
	{
		switch($act)
		{
		case(''):
			{
				include('includes/lienhe/lienhe.php');
				break;
			}
			case('mail'):
			{
				include('includes/lienhe/maillienhe.php');
				break;
			}
			
		}
		break;
	}
	

    case('footer'):
    {
        switch($act){
            case '':
            {
                include('includes/footer/footer.php');
                break;
            }
            case 'edit':
            {
                include('includes/footer/suafooter.php');
                break;
            }

        }
        break;
    }
	default:
	{
    include('includes/home.php');
		break;
	}
}

?>
